const path = require('path');
module.exports = {
  entry: {
    bundle1: './main1.js',
    bundle2: './main2.js'
  },
  output: {
    path: path.resolve(__dirname, 'dist'),
    publicPath:"dist",
    filename: '[name].js'
  },
  devtool: 'inline-source-map',
  devServer: { // 安装webpack、webapck-dev-server、webapck-cli
    contentBase: './', // webpack-dev-sever的访问目录
    // inline: true,
    hot: true,
  },
}